{{define "base/one_button"}}
<a class="layui-btn layui-btn-sm {{.css_class}}"
   id="openLink_{{.id}}"
   lay-event="openLink_{{.id}}"
   admin-href="{{.link}}"
   link-type="{{.link_type}}"
   open-type="{{.open_type}}"
   param-type="{{.param_type}}"
   width="{{.width}}"
   height="{{.height}}"
   confirm="{{.confirm}}"
   edit-from-id="{{.edit_from_id}}"
   param-obj-id="{{.param_obj_id}}"
   {{if eq .default "Y"}}default{{end}} {{if eq .default_open "Y"}}admin-default-open{{end}}>{{.name}}</a>
{{end}}